﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.Behaviour.OberverPattern
{
    /// <summary>
    /// 观察者
    /// </summary>
    public interface Observer
    {
        /// <summary>
        /// 更新观察的主题的数据
        /// </summary>
        /// <param name="temperature">温度</param>
        /// <param name="humidity">湿度</param>
        /// <param name="pressure">压力</param>
        void Update(float temperature, float humidity, float pressure);
    }
}
